package com.beinhospital_sw21_h2_05.beinhospitalsw21h205.service;

import com.beinhospital_sw21_h2_05.beinhospitalsw21h205.entity.Department;
import com.beinhospital_sw21_h2_05.beinhospitalsw21h205.utils.PageBean;

/**
 * DepartmentService 接口定义了管理 Department 实体的操作。
 */
public interface DepartmentService {

    /**
     * 分页查询 Department 信息
     *
     * @param page           页码
     * @param pageSize       页大小
     * @param departmentName 科室名称关键字
     * @return 包含分页 Department 信息的 PageBean 对象
     */
    PageBean page(Integer page, Integer pageSize, String departmentName);

    /**
     * 根据 DepartmentID 删除 Department
     *
     * @param departmentID 要删除的 Department 的 ID
     */
    void delete(Integer departmentID);

    /**
     * 添加 Department
     *
     * @param department 包含要添加的 Department 的信息
     */
    void add(Department department);

    /**
     * 更新 Department 信息
     *
     * @param department 包含要更新的 Department 的信息
     */
    void update(Department department);
}
